package com.voxel.sense.infomsg.module.publish;

import android.view.View;

import com.example.com.common.app.BaseFragment;
import com.voxel.sense.infomsg.R;
import com.voxel.sense.infomsg.module.publish.personal.MyPublishActivity;
import com.voxel.sense.infomsg.view.titlebar.TextTitleBar;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by ChenYiYao on 2018/7/23.
 */
public class PublishFrag extends BaseFragment {
    @BindView(R.id.titlebar)
    TextTitleBar titlebar;

    @Override
    protected int getContentLayoutId() {
        return R.layout.frag_publish;
    }

    @Override
    protected void initData() {
        super.initData();
        titlebar.setTitleText(R.string.publish_title);
        titlebar.setLeftVisible(false);


        titlebar.setRightText("我的填报");
    }

    @OnClick({R.id.publish_file,R.id.titlebar_tv_right})
    void onClickEvent(View view) {
        if (view.getId() == R.id.publish_file) {
            PublishFileActivity.show(getActivity());
//            FeedbackUpActivity.show(getActivity());
        }
        if (view.getId() == R.id.titlebar_tv_right) {
            MyPublishActivity.show(getActivity());
        }

    }

}
